package org.dfrt.own.entity;

import java.io.Serializable;

/**
 * @author zhang
 * ClassName: Blog
 * Description: 文章实体类
 * date: 2023/10/3 18:53
 * @since JDK 8
 */
public class Blog implements Serializable {
    //文章id
    private Integer bid;
    //文章对应用户的id
    private Integer uid;
    //文章发布时间
    private String btime;
    //文章标题
    private String btitle;
    //文章内容
    private String bcontent;

    public Blog() {
    }

    public Blog(Integer bid, Integer uid, String btime, String btitle, String bcontent) {
        this.bid = bid;
        this.uid = uid;
        this.btime = btime;
        this.btitle = btitle;
        this.bcontent = bcontent;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getBtime() {
        return btime;
    }

    public void setBtime(String btime) {
        this.btime = btime;
    }

    public String getBtitle() {
        return btitle;
    }

    public void setBtitle(String btitle) {
        this.btitle = btitle;
    }

    public String getBcontent() {
        return bcontent;
    }

    public void setBcontent(String bcontent) {
        this.bcontent = bcontent;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "bid=" + bid +
                ", uid=" + uid +
                ", btime='" + btime + '\'' +
                ", btitle='" + btitle + '\'' +
                ", bcontent='" + bcontent + '\'' +
                '}';
    }
}
